<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
	<meta name="baidu-site-verification" content="JdMif0g2tL" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>angular</title>
	<link rel="stylesheet" href="css/index.css" type="text/css">
</head>
<body ng-app="myApp">

<div ng-controller="appCtrl">
	<button ng-click="togglePage(true)">商品详情</button>
	<button ng-click="togglePage(false)">用户评论</button>
	<div ng-show="showFirst" ng-bind="'商品详情页'"></div>
	<div ng-hide="showFirst" ng-bind="'用户品论页'"></div>
</div>

<script type="text/javascript">
	document.getElementsByTagName('html')[0].style.fontSize=window.screen.width/10+'px';
</script>
<script src="vendor/angular/angular.min.js" charset="utf-8"></script>
<script type="text/javascript">
	var app =angular.module('myApp', []);
	app.controller('appCtrl', ['$scope', function($scope){
		$scope.showFirst=true;
		$scope.togglePage=function(isShowFirst){
			$scope.showFirst=isShowFirst;
		}
	}])
</script>
<!-- <script src="js/index.js" charset="utf-8"></script> -->
</body>
</html>
<!--应该 6.6-->